public class Leetcode1617 {

    public static void main(String[] args) {
        System.out.println(countSubgraphsForEachDiameter(4, new int[][]{}));
    }
    public static int[] countSubgraphsForEachDiameter(int n, int[][] edges) {
        int probable = 1 << n;
        for (int i = 0; i < probable; i++) {
            for (int j = 0; j < 31; j++) {
                if ((i & 1 << j) != 0) {
                    System.out.print(j + " ");
                }
            }
            System.out.println();
        }

        return null;
    }
}
